<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>依次打印数组元素</title>
    <script>
        var fruit = ['苹果','香蕉','酸梨','榴莲','樱桃','柿子','葡萄','哈密瓜','西瓜'];
        for(var i = 0;i<fruit.length;i++){
            console.log(fruit[i]);
        }
    </script>
</head>
<body>

</body>
</html>